/* 
 * File:   Pile.h
 * Author: Gab'z
 *
 * Created on 8 mai 2012, 17:09
 */

#ifndef PILE_H
#define	PILE_H

#include <list>
#include "Constante.h"
#include <stdexcept>
class Pile {
    std::list<Constante*> _constanteStack;

public:

    Pile() {
    }

    virtual ~Pile();
    void push(const Constante* c);
    const Constante* top();
    void pop();

    int size() const;
    const Constante* getConstante(unsigned int n) const throw (std::out_of_range);
private:

};

#endif	/* PILE_H */

